package com.customer.pojo;

import java.util.Date;

/**
 * @ClassName: Order
 * @Description: 订单实体类
 * @author kxk
 * @date 2021-05-13 00:50:06
 */
public class Order {
    /**
     * 订单编号
     */
    private int oid;

    /**
     * 商品编号
     */
    private int gid;
    /**
     * 用户编号
     */
    private int uid;
    /**
     * 配送员编号
     */
    private int did;
    /**
     * 购买数量
     */
    private double number;
    /**
     * 订单总价
     */
    private double orprice;
    /**
     * 订单创建时间
     */
    private Date orcreatetime;
    /**
     * 预计送达时间
     */
    private Date deliverytime;
    /**
     * 用户删除状态
     */
    private String userdelete;
    /**
     * 商家删除状态
     */
    private String merchantdelete;
    /**
     * 用户取消状态
     */
    private String usercancel;
    /**
     * 商品送达状态
     */
    private String deliveryststus;
    /**
     * 订单状态
     */
    private String ocondition;
    /**
     * 支付方式
     */
    private String modeofpay;
    /**
     * 订单评分
     */
    private int ograde;

    private Goods goods;





    public Order() {
    }

    public Order(int oid, int gid, int uid, int did, double number, double orprice, Date orcreatetime, Date deliverytime, String userdelete, String merchantdelete, String usercancel, String deliveryststus, String ocondition, String modeofpay, int ograde) {
        this.oid = oid;
        this.gid = gid;
        this.uid = uid;
        this.did = did;
        this.number = number;
        this.orprice = orprice;
        this.orcreatetime = orcreatetime;
        this.deliverytime = deliverytime;
        this.userdelete = userdelete;
        this.merchantdelete = merchantdelete;
        this.usercancel = usercancel;
        this.deliveryststus = deliveryststus;
        this.ocondition = ocondition;
        this.modeofpay = modeofpay;
        this.ograde = ograde;
    }

    public int getOid() {
        return oid;
    }

    public void setOid(int oid) {
        this.oid = oid;
    }

    public int getGid() {
        return gid;
    }

    public void setGid(int gid) {
        this.gid = gid;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getDid() {
        return did;
    }

    public void setDid(int did) {
        this.did = did;
    }

    public double getNumber() {
        return number;
    }

    public void setNumber(double number) {
        this.number = number;
    }

    public double getOrprice() {
        return orprice;
    }

    public void setOrprice(double orprice) {
        this.orprice = orprice;
    }

    public Date getOrcreatetime() {
        return orcreatetime;
    }

    public void setOrcreatetime(Date orcreatetime) {
        this.orcreatetime = orcreatetime;
    }

    public Date getDeliverytime() {
        return deliverytime;
    }

    public void setDeliverytime(Date deliverytime) {
        this.deliverytime = deliverytime;
    }

    public String getUserdelete() {
        return userdelete;
    }

    public void setUserdelete(String userdelete) {
        this.userdelete = userdelete;
    }

    public String getMerchantdelete() {
        return merchantdelete;
    }

    public void setMerchantdelete(String merchantdelete) {
        this.merchantdelete = merchantdelete;
    }

    public String getUsercancel() {
        return usercancel;
    }

    public void setUsercancel(String usercancel) {
        this.usercancel = usercancel;
    }

    public String getDeliveryststus() {
        return deliveryststus;
    }

    public void setDeliveryststus(String deliveryststus) {
        this.deliveryststus = deliveryststus;
    }

    public String getOcondition() {
        return ocondition;
    }

    public void setOcondition(String ocondition) {
        this.ocondition = ocondition;
    }

    public String getModeofpay() {
        return modeofpay;
    }

    public void setModeofpay(String modeofpay) {
        this.modeofpay = modeofpay;
    }

    public int getOgrade() {
        return ograde;
    }

    public void setOgrade(int ograde) {
        this.ograde = ograde;
    }

    @Override
    public String toString() {
        return "Order{" +
                "oid=" + oid +
                ", gid=" + gid +
                ", uid=" + uid +
                ", did=" + did +
                ", number=" + number +
                ", orprice=" + orprice +
                ", orcreatetime=" + orcreatetime +
                ", deliverytime=" + deliverytime +
                ", userdelete='" + userdelete + '\'' +
                ", merchantdelete='" + merchantdelete + '\'' +
                ", usercancel='" + usercancel + '\'' +
                ", deliveryststus='" + deliveryststus + '\'' +
                ", ocondition='" + ocondition + '\'' +
                ", modeofpay='" + modeofpay + '\'' +
                ", ograde=" + ograde +
                '}';
    }
}
